function S = createSymbolicMatrix(N, M, prefix)

for n = 1:N;
    for m = 1:M
        S(n, m) = sym([prefix num2str(n) num2str(m)]);
    end
end
